package com.bandaotixi.cashier.api.common.model;

import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 键值对
 */
@Data
@NoArgsConstructor
public class KeyValue3<T1, T2, T3> {

    public KeyValue3(T1 value1, T2 value2, T3 value3) {
        this.value1 = value1;
        this.value2 = value2;
        this.value3 = value3;
    }

    public static <P1, P2, P3> KeyValue3<P1, P2, P3> just(P1 value1, P2 value2, P3 value3) {
        return new KeyValue3<>(value1, value2, value3);
    }

    private T1 value1;
    private T2 value2;
    private T3 value3;

}
